﻿namespace BestEasyCMS.Framework.Authentication
{
    /// <summary>
    /// Form身份验证接口
    /// </summary>
    public interface IFormsAuthentication
    {
        /// <summary>
        /// 登入
        /// </summary>
        /// <param name="token"></param>
        void SetAuthenticationToken(string token);
        /// <summary>
        /// 登出
        /// </summary>
        void SignOut();
        /// <summary>
        /// 
        /// </summary>
        /// <param name="userName">用户名</param>
        /// <param name="expiration">过期时间/分钟</param>
        /// <param name="roleName">角色名</param>
        void SetAuthenticationToken(string userName, int expiration, string roleName);
    }

}
